using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using SocketWeaver.FixedMath;

public class FRotateAround : MonoBehaviour
{
    public FVector3 axis;
    public FFloat angle;
    public Space rotateSpace;

    // Start is called before the first frame update
    void Start()
    {
        
    }

    // Update is called once per frame
    void Update()
    {
        FTransform ftransform = GetComponent<FTransform>();

        if (true)//Input.GetKeyUp(KeyCode.Space))
        {
            Debug.Log($"Before {ftransform.eulerAngles}");
            ftransform.Rotate(axis, angle, rotateSpace);
            Debug.Log($"After {ftransform.eulerAngles}");
        }
    }
}
